package com.lgj.rocketmq.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @author: guangjie.liao
 * @since: 2023/9/20 23:26
 * @description:
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "rocket.producer")
public class ProducerProperties {
    /**
     *发送失败最大重试次数
     */
    private Integer maxRetry;
    /**
     *发送失败是否重试其他节点
     */
    private Boolean retryAnotherBroker;
    /**
     * nameServer地址
     */
    @Value("${rocket.nameServer.host}")
    private String nameServerAddress;
}
